import request from '../utils/request'

export function selectAdvertising(startpage, pagesize){
    return request({
        url: '/ps/pmAdvertising/list',
        method: 'get',
        params:{
            startpage:startpage,
            pagesize:pagesize
        }
        
    })
}

export function selectMH(pmAdvertisingVo){
    return request({
        url: '/ps/pmAdvertising/selectMH',
        method: 'post',
        data: pmAdvertisingVo
    })
}

export function insert(userFrom){
    return request({
        url:'/ps/pmAdvertising/insert',
        method: 'post',
        data: userFrom
    })
}

export function update(userFrom){
    return request({
        url:'/ps/pmAdvertising/update',
        method: 'post',
        data: userFrom
    })
}

export function deleted(id){
    return request({
        url: `/ps/pmAdvertising/delete/${id}`
    })
}

export function updateStatus(userFrom){
    return request({
        url:'/ps/pmAdvertising/updateStatus',
        method: 'post',
        data: userFrom
    })
}

export function updateDisStatus(userFrom){
    return request({
        url:'/ps/pmAdvertising/updateDisStatus',
        method: 'post',
        data: userFrom
    })
}